b2bsoft-ux

(0 reviews)

TMF-687 [IF-009a-Stock Increment] POST-stockIncrements

This operation helps in incrementing/decrementing of stock from store to inventory.

URL
http://[localhost]:[port]/b2bsoft-ux/v1/{businessId}/stockIncrements
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.Y
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/b2bsoft-ux/b2bsoft-ux/v1/PR/stockIncrements' \
--header 'client_id:  12324567' \
--header 'client_secret:  abcdefg' \
--header 'X-Correlation-ID: yuhgtr-fdewsacb-jndjndlkj-cndkjnjvn' \
--header 'Content-Type: application/json' \
--data '{
    "header": {
        "postingDate": "20230602",
        "docDate": "20230602",
        "freeText": "LCPRFREETEXT",
        "docNumber": "1028",
        "action": "stockIncrementB2BSOFT",
        "GMCode": "06"
    },
    "goodsMovementsItems": [
        {
            "SKU": "117076",
            "storeId": "13PR",
            "storeIdDestination": "48PR",
            "location": "0002",
            "movementType": "963",
            "entryQuantity": 1.0,
            "reserveNo": "Mock",
            "reserveItem": "Mock",
            "sequenceNo": "0001",
            "serialNo": [
                "10322260"
            ]
        }
    ]
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
header.postingDatestringPosting Date. should be in yyyymmdd formatY
header.docDatestringDocument Date. should be in yyyymmdd formatY
header.freeTextstringDescription TextY
header.docNumberstringDocument NumberY
header.actionstringDetermines the functionality that is being performedY
header.GMCodestringGood Movement CodeY
goodsMovementsItems.SKUstringStore Keeping Unit number / Material Number / Product numberY
goodsMovementsItems.storeIdstringOrigin Store IDY
goodsMovementsItems.storeIdDestinationstringDestination Store IDY
goodsMovementsItems.locationstringPlant locationY
goodsMovementsItems.movementTypestringMovement type i.e. increment or decrementY
goodsMovementsItems.entryQuantityNumberItem Entry QuantityY
goodsMovementsItems.reserveNostringreserve NoY
goodsMovementsItems.reserveItemstringreserve ItemY
goodsMovementsItems.sequenceNostringMaterial Sequence numberY
goodsMovementsItems.serialNoarraySerial number of the SKUY

Response

[ 201 ]

Created - POST request processed successfully.

{
    "matDocYear": 2022,
    "matDoc": "4900001902"
}
Definitions
nametypedescriptionrequired
matDocYearNumberDocument posted YearY
matDocstringDocument number from backend systemY

Reviews